package cn.ftx.result.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 *     自定义异常
 * </p>
 *
 * @author AUTHER
 * @since 2021-04-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RRException extends Exception{

    private String msg;
    private int code = 500;

    public RRException( String msg) {
        this.msg = msg;
        this.code=500;
    }
}
